<script lang="ts" setup>
import {StarFilled} from '@element-plus/icons-vue'
</script>

<template>

  <div class="carousel">

    <el-carousel indicator-position="outside" height="70vh">
      <el-carousel-item v-for="item in 4" :key="item" style="height: 70vh">
        <img src="/src/assets/img/1.png">
      </el-carousel-item>
    </el-carousel>
  </div>
  <br><br>
  <el-divider content-position="left">
    <el-icon>
      <star-filled/>
    </el-icon>
  </el-divider>
  <el-text style="font-size: 23px"><b>我们的创始人们</b></el-text>
  <el-divider content-position="left">
    <el-icon>
      <star-filled/>
    </el-icon>
  </el-divider>

  <div class="one">
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span class="name">熊超</span>
          <el-avatar
              src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
              size="large"
          />
        </div>
      </template>
      <el-text size="large">21101020318</el-text>
    </el-card>
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span class="name">杨爽</span>
          <el-avatar
              src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
              size="large"
          />
        </div>
      </template>
      <el-text size="large">21101020319</el-text>
    </el-card>
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span class="name">袁枭鸿</span>
          <el-avatar
              src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
              size="large"
          />
        </div>
      </template>
      <el-text size="large">21101020320</el-text>
    </el-card>
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span class="name">王俊杰</span>
          <el-avatar
              src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
              size="large"
          />
        </div>
      </template>
      <el-text size="large">21101020315</el-text>
    </el-card>
  </div>
</template>

<style scoped>
.name {
  font-size: 20px;
}

.box-card {
  display: table-column;
  align-content: space-between;
  width: 38vh;
  height: 40vh;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

img {
  width: 100%;
  height: 100%;
}

.one {
  display: flex;
  justify-content: space-between;
  margin-left: 2px;
  margin-right: 2px;
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 350px;
  margin: 0;
  text-align: center;
}


</style>